package com.yingxue.lesson.service;

import com.yingxue.lesson.vo.req.RolePermissionOperationReqVO;
import com.yingxue.lesson.vo.req.userVo.UserOwnRoleReqVO;

import java.util.List;

public interface RolePermissionService {

    //添加角色权限中间表
    void addRolePermission(RolePermissionOperationReqVO vo);

    //根据权限id查询角色id 集合
    List<String> getRoleIdsByPermissionId(String permissionId);

    //根据permissionId 删除角色和菜单权限关联表相关数据
    void removeByPermission(String permission);

    //根据角色id获取该角色关联的菜单权限id集合
    List<String> getPermissionIdsByRoleId(String roleId);

    //根据角色id删除角色和菜单权限关联表相关数据
    int removeByRoleId(String roleId);

    //根据 roleIds 查询 permissionIds
    List<String> getPermissionIdsByRoleIds(List<String> roleIds);

}
